]> dgit.raspbian.org Git - gnome-shell.git/commit
magnifier: Update screen position on activation
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 27 Mar 2019 21:16:26 +0000 (22:16 +0100)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 27 Mar 2019 23:38:42 +0000 (00:38 +0100)
commita298943fac0beb5825c12ae59f682af1d417e346
treebfd3cb48a8223eaef25ca21fb2687b6e5c405cec
parentdf9ddf96a59531848a60e8336b33ca224e0df874
magnifier: Update screen position on activation

The default ZoomRegion is created at startup and only updated if it is active
when the monitor setup changes. Thus when reactivating the magnifier after a
display change, the viewport used is still the one that been computed with the
old screen geometry values.

Move screen update code inside a function and call it both when activating
the zoom region and when the monitor changes during a zoom session.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1120
js/ui/magnifier.js